Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Camera View Port Structure

You use a camera view port structure to get or set information about the view port of a camera. A camera's view port defines the rectangular portion of the view plane that is to be mapped into the area specified by the current draw context. The default settings for a view port describe the entire view plane, where the origin (-1.0, 1.0) is the upper-left corner and the width and height of the plane are both 2.0. A camera view port structure is defined by the TQ3CameraViewPort data type.

typedef struct TQ3CameraViewPort {
    TQ3Point2D                          origin;
    float                               width;
    float                               height;
} TQ3CameraViewPort;
origin
The origin of the view port. The values of the x and y fields of this point should be between -1.0 and 1.0.
width
The width of the view port. The value in this field should be greater than 0.0 and less than 2.0.
height
The height of the view port. The value in this field should be greater than 0.0 and less than 2.0.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |